﻿using System;
using Newtonsoft.Json;

namespace CuteRibs.WowArmory.Models
{
	#region RatedBattlegroundLadder
	/// <summary>
	/// {
	///		"bgRecord": []
	///	}
	/// </summary>
	[JsonObject]
	public class RatedBattlegroundLadder : BNObjectBase
	{
		[JsonProperty("bgRecord")]
		public RatedBattleground[] BgRecord { get; set; }
	} 
	#endregion

	#region RatedBattleground
	/// <summary>
	/// {
	///		"rank": 1,
	///		"bgRating": 5000,
	///		"wins": 263,
	///		"losses": 65,
	///		"played": 328,
	///		"region": {},
	///		"battlegroup": {},
	///		"team": {},
	///		"lastModified": 1343232177000
	///	}
	/// </summary>
	[JsonObject]
	public class RatedBattleground
	{
		[JsonProperty("rank")]
		public int Rank { get; set; }

		[JsonProperty("bgRating")]
		public int BgRating { get; set; }

		[JsonProperty("wins")]
		public int Wins { get; set; }

		[JsonProperty("losses")]
		public int Losses { get; set; }

		[JsonProperty("played")]
		public int Played { get; set; }

		[JsonProperty("realm")]
		public Realm Realm { get; set; }

		[JsonProperty("battlegroup")]
		public Battlegoup Battlegroup { get; set; }

		[JsonProperty("character")]
		public Character Character { get; set; }

		[JsonProperty("lastModified")]
		[JsonConverter(typeof(BNDateTimeConverter))]
		public DateTime LastModified { get; set; }
	} 
	#endregion
}
